#!/bin/bash

pages=3
url="http://www.ip3366.net/free/?page="
for i in $(seq $pages)
do
    w3m "$url$i" -dump | egrep '([0-9]+\.){3}.[0-9]+' | awk '{print $1":"$2}'
done
